import {QuestionCircleOutlined, SmileTwoTone} from '@ant-design/icons';
import {SelectLang as UmiSelectLang} from '@umijs/max';
import React from 'react';
import {Button, Popover, Space} from "antd";

export type SiderTheme = 'light' | 'dark';

export const SelectLang = () => {
  return (
    <UmiSelectLang
      style={{
        padding: 4,
      }}
    />
  );
};

export const Question = () => {

  const content = (
    <div>
      <b>有问题请留言 kazu_zhang@163.com</b>
      {
        <SmileTwoTone />
      }
    </div>
  );

  return (
    <Space wrap>
      <Popover content={content} title="帮助" trigger="hover" style={{
        display: 'flex',
        height: 26,
      }}>
        <QuestionCircleOutlined/>
      </Popover>
    </Space>
  );
};
